//
//  NMeTableViewCell.m
//  News
//
//  Created by zhangtao on 2018/10/13.
//  Copyright © 2018年 zt.td. All rights reserved.
//

#import "NMeTableViewCell.h"

@implementation NMeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    // Initialization code
}

//-(instancetype)initWithFrame:(CGRect)frame{
//
//}

-(void)setMarkInfo:(NSString *)markInfo{
    if (!_markLab) {
        _markLab = [[UILabel alloc]init];
        _markLab.layer.cornerRadius = 6;
        _markLab.layer.masksToBounds = YES;
        _markLab.backgroundColor = [UIColor redColor];
        _markLab.textAlignment = NSTextAlignmentCenter;
        _markLab.textColor = [UIColor whiteColor];
        _markLab.font = [UIFont systemFontOfSize:10];
        [self addSubview:_markLab];
    }
    
    _markLab.text = markInfo;
    CGSize size = [ACEPublicTool textViewTextFont:[UIFont systemFontOfSize:10] andText:markInfo Weight:200 andHeight:10];
    _markLab.frame = CGRectMake(ACEWidth-size.width-40, 14, size.width+5, 12);
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
